#ifndef UTILITY_TIMEUTILITY_H
#define UTILITY_TIMEUTILITY_H

#include <QObject>


namespace Utility {

class TimeUtility : public QObject
{
    Q_OBJECT
public:
    explicit TimeUtility(QObject *parent = 0);
    static qint64 lastWeekSecsSinceEpoch();
    static qint64 lastMonthSecsSinceEpoch();
    static qint64 lastYearSecsSinceEpoch();
    static qint64 secsTimePeriodDay();
    static qint64 msecsTimePeriodDay();
    static qint64 beginningTodayMSecsFromEpoch();
    static qint64 beginningThisWeekMSecsFromEpoch();
    static qint64 beginningThisWeekSecsFromEpoch();

    static bool isToday(int secsTime);
    static bool isThisWeek(int secsTime);
};

} // namespace Utility

#endif // UTILITY_TIMEUTILITY_H

